# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-soupsieve
pkgver=2.5
pkgrel=1
pkgdesc="modern CSS selector implementation for Beautiful Soup"
options="!check" # Circular dependency on py3-beautifulsoup4
url="https://github.com/facelessuser/soupsieve"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-hatchling py3-gpep517"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/facelessuser/soupsieve/archive/$pkgver.tar.gz"
builddir="$srcdir/soupsieve-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
5b3bb1f8ea84c69a97b273c87f385513baf9f0c49f5cf822120e4a73c16801ad8eb65f7ac32f83091b3efac716b3a7097b7511273e7fb8079f49ca6caa238656  py3-soupsieve-2.5.tar.gz
"
